import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		id: '',
		username: '',
		avatar: ''
	},
	mutations: {
		login(state, data) {
			state.id = data.id
			state.username = data.username
			state.avatar = data.avatar
		}
	},
	actions: {

	}
})
export default store
